<?php

use App\V3\Api\Controllers\AllocateController;
use App\V3\Api\Controllers\AnnounceController;
use App\V3\Api\Controllers\CheckController;
use App\V3\Api\Controllers\CommonDetailController;
use App\V3\Api\Controllers\CompanyClassController;
use App\V3\Api\Controllers\CrontabController;
use App\V3\Api\Controllers\DriverController;
use App\V3\Api\Controllers\ExpressController;
use App\V3\Api\Controllers\ExpressTempleteController;
use App\V3\Api\Controllers\LogController;
use App\V3\Api\Controllers\LoginController;
use App\V3\Api\Controllers\MaterielController;
use App\V3\Api\Controllers\MaterielTypeController;
use App\V3\Api\Controllers\ModuleController;
use App\V3\Api\Controllers\OssStorageSettingController;
use App\V3\Api\Controllers\OverflowBreakageController;
use App\V3\Api\Controllers\PackageController;
use App\V3\Api\Controllers\RoleController;
use App\V3\Api\Controllers\SalesReturnController;
use App\V3\Api\Controllers\SellController;
use App\V3\Api\Controllers\SettingController;
use App\V3\Api\Controllers\ShareSettingController;
use App\V3\Api\Controllers\StatisticsController;
use App\V3\Api\Controllers\StorageController;
use App\V3\Api\Controllers\StorageManageController;
use App\V3\Api\Controllers\SupplierCustomerController;
use App\V3\Api\Controllers\SystemConfigController;
use App\V3\Api\Controllers\TallyClassController;
use App\V3\Api\Controllers\TallyController;
use App\V3\Api\Controllers\UploadController;
use App\V3\Api\Controllers\AdminController;
use App\V3\Api\Controllers\UsersController;
use App\V3\Api\Controllers\VersionsController;
use App\V3\Api\Controllers\VipSettingController;
use App\Http\Controllers\Api\CommonController;
use App\V3\Api\Controllers\OperationLogController;
use App\Http\Controllers\Api\SyncDataController;
use Illuminate\Support\Facades\Route;
use App\V3\Api\Controllers\KuaidiController;
use App\V3\Api\Controllers\RegionController;
use App\V3\Api\Controllers\MaterielClassController;
use App\V3\Api\Controllers\PictureEditingController;
use App\V3\Api\Controllers\TextImageController;
use App\V3\Api\Controllers\TextImageTemplatesController;
use App\V3\Api\Controllers\CreateExpressTemplatesController;
use App\V3\Api\Controllers\HcUploadController;
use App\V3\Api\Controllers\ContentTagsController;
use App\V3\Api\Controllers\ImageLabelController;
use App\V3\Api\Controllers\DispatchListController;
use App\V3\Api\Controllers\DeliverySlipController;
use App\V3\Api\Controllers\DeliveryGoodsController;
use App\V3\Api\Controllers\QuotationNoController;
use App\V3\Api\Controllers\QuotationGoodsController;
use App\V3\Api\Controllers\ReceiptController;
use App\V3\Api\Controllers\MedicalDeliveryOrderController;
use App\V3\Api\Controllers\MedicalDeliverOrderController;
use App\V3\Api\Controllers\SealManageController;
use App\V3\Api\Controllers\HcMaterielTypeController;
use App\V3\Api\Controllers\HcMaterielClassController;
use App\V3\Api\Controllers\DataFieldController;
use App\V3\Api\Controllers\OrderController;
use App\V3\Api\Controllers\NotifyController;
use App\V3\Api\Controllers\ShelfController;
use App\V3\Api\Controllers\LocationController;
use App\V3\Api\Controllers\BuyStorageSpaceController;
use App\V3\Api\Controllers\CheckStorageManageController;

Route::post('sync_cost_log', [SyncDataController::class, 'syncCost1']);//同步当前成本至上一次成本中
Route::post('sync_admin_vip', [SyncDataController::class, 'syncCost2']);//同步vip
Route::post('sync_not_vip_info', [SyncDataController::class, 'notVipMemberSyncInfo']);//同步非vip
Route::post('sync_shelf', [SyncDataController::class, 'syncShelf']);//同步库位
Route::get('end_experience', [CrontabController::class, 'endExperience']);//结束vip体验
Route::get('monitoring_storage_status', [CrontabController::class, 'accountStorageStatus']);//实时监控存储空间状态
Route::post('set_newpwd', [SyncDataController::class, 'setNewpwd']);//给子账号重设密码
Route::get('sync_materiel_type_img', [SyncDataController::class, 'syncMaterielTypeImg']);//同步图片产生缩略图

//登录部分
Route::post('send_code', [LoginController::class, 'sendCode']);//发送验证码
Route::post('login', [LoginController::class, 'login']);//账号登录
Route::get('download', [CommonController::class, 'download']);//下载库存导入模版

Route::group(['middleware'=>['check_is_upkeep']],function() {
    Route::get('storage_manage_export', [CommonController::class, 'export']);//导出库存报表
    Route::get('sell_export', [CommonController::class, 'sellExport']);//导出销售报表
    Route::post('upload_file', [UploadController::class, 'upload']);//单图上传
    Route::post('kuaidi_list', [KuaidiController::class, 'list']);//快递公司列表
    Route::post('new_kuaidi_list', [KuaidiController::class, 'newList']);//快递公司列表
    Route::post('read_batch_without_token', [CommonController::class, 'readBatch']);//自动识别token

//'login_limit',
    Route::group(['middleware'=>['enable_cross']],function(){
        Route::post('log_off', [UsersController::class, 'logOff']);//注销
        Route::post('set_batch_title', [SettingController::class, 'setBatchTitle']);//识别批次号
        Route::post('direct_in_storage', [App\Http\Controllers\Api\StorageManageController::class, 'directInStorage']);//直接入库
        Route::post('trans_out_way', [AdminController::class, 'transOutWay']);//出库方式转换
        Route::post('read_batch_no', [StorageManageController::class, 'readBatchNo']);//识别批次号
        Route::post('fast_out_storage', [StorageManageController::class, 'fastOutStorage']);//识别批次号
        Route::post('one_key_clear', [StorageManageController::class, 'oneKeyClear']);//一鍵清空庫存(倉庫庫存，商品信息，分類信息)
        Route::post('read_address', [CommonController::class, 'readAddress']);//智能识别地址信息
        Route::post('barcode', [CommonController::class, 'generateBarcode']);//生成条形码
        Route::post('region_list', [RegionController::class, 'list']);//省市区列表
        Route::post('storage_manage_in', [StorageManageController::class, 'storageManageIn']);//库存直接入库

        //物料商品分类管理
        Route::post('materiel_class_select', [MaterielClassController::class, 'select']);//物料商品分类下拉列表
        Route::post('materiel_class_add', [MaterielClassController::class, 'add']);//新建物料商品分类
        Route::post('materiel_class_del', [MaterielClassController::class, 'del']);//删除指定物料商品分类
        Route::post('materiel_class_edit', [MaterielClassController::class, 'edit']);//修改指定商品分类信息
        Route::post('materiel_class_list', [MaterielClassController::class, 'list']);//商品分类列表
        Route::post('materiel_class_rand_no', [MaterielClassController::class, 'randNo']);//商品分类随机编号

        //物料商品类型管理
        Route::post('materiel_type_add', [MaterielTypeController::class, 'add']);//新建物料商品类型
        Route::post('materiel_type_del', [MaterielTypeController::class, 'del']);//删除物料商品信息
        Route::post('materiel_type_edit', [MaterielTypeController::class, 'edit']);//修改商品信息
        Route::post('materiel_type_info', [MaterielTypeController::class, 'info']);//指定物料商品信息
        Route::post('materiel_type_select', [MaterielTypeController::class, 'select']);//物料列表
        Route::post('materiel_type_list', [MaterielTypeController::class, 'list']);//物料列表-含当前库存信息
        Route::post('materiel_type_rand_no', [MaterielTypeController::class, 'randNo']);//物料商品随机编号
        Route::post('edit_materiel_cost', [MaterielTypeController::class, 'editMaterielCost']);//入库

        //子账号管理
        Route::post('user_list', [AdminController::class, 'userList']);//子账号列表
        Route::post('trans_status', [AdminController::class, 'transStatus']);//启禁用账号状态
        Route::post('reset_pwd', [AdminController::class, 'resetPwd']);//重置子账号密码
        Route::post('del_user', [AdminController::class, 'delUser']);//删除子账号
        Route::post('add_user', [AdminController::class, 'addUser']);//新建子账号
        Route::post('edit_userinfo', [AdminController::class, 'editUserInfo']);//修改子账号基础信息
        Route::post('set_user_permission', [AdminController::class, 'setUser']);//设置子账号权限信息
        Route::post('get_user_permission', [AdminController::class, 'getUserPermission']);//获取子账号可用权限信息
        Route::post('start_to_experience', [AdminController::class, 'startToExperience']);//开启体验版

        //存储空间设置
        Route::post('list', [OssStorageSettingController::class, 'list']);//可购买存储空间配置列表

        //账户-设置
        Route::post('change_mobile', [AdminController::class, 'changeMobile']);//修改手机号
        Route::post('modify_userinfo', [AdminController::class, 'modifyUserinfo']);//修改用户信息
        Route::post('change_password', [AdminController::class, 'changePassword']);//修改密码
        Route::post('user_center', [AdminController::class, 'userCenter']);//个人中心
        Route::post('relieve_wechat_bind', [AdminController::class, 'relieveWechatBind']);//解除微信绑定
        Route::post('wechat_bind', [AdminController::class, 'wechatBind']);//绑定微信
        Route::post('invite_list', [AdminController::class, 'inviteList']);//被邀请人列表
        Route::post('set_pwd', [AdminController::class, 'setPwd']);//设置密码

        //角色管理
        Route::post('role_add', [RoleController::class, 'add']);//添加角色
        Route::post('role_del', [RoleController::class, 'del']);//删除角色
        Route::post('role_edit', [RoleController::class, 'edit']);//修改角色信息及权限信息
        Route::post('role_list', [RoleController::class, 'list']);//角色列表
        Route::post('role_detail', [RoleController::class, 'detail']);//角色权限详细

        //模块管理
        Route::post('add_module', [ModuleController::class, 'add']);//增加
        Route::post('del_module', [ModuleController::class, 'del']);//删除
        Route::post('edit_module', [ModuleController::class, 'edit']);//修改
        Route::post('module_list', [ModuleController::class, 'list']);//权限信息列表
        Route::post('module_select', [ModuleController::class, 'select']);//一级权限模块列表-下拉

        //操作日志
        Route::post('log_list', [OperationLogController::class, 'logList']);

        //供应商客户
        Route::post('supplier_customer_add', [SupplierCustomerController::class, 'add']);
        Route::post('supplier_customer_edit', [SupplierCustomerController::class, 'edit']);
        Route::post('supplier_customer_del', [SupplierCustomerController::class, 'del']);
        Route::post('supplier_customer_list', [SupplierCustomerController::class, 'index']);
        Route::post('supplier_customer_find', [SupplierCustomerController::class, 'find']);
        Route::post('supplier_customer_select', [SupplierCustomerController::class, 'select']);
        Route::post('is_share_customer', [AdminController::class, 'isShareCustomers']);//是否共享客户
        Route::post('get_share_info', [AdminController::class, 'getShareInfo']);//获取供应商客户共享信息
        Route::post('is_set_as_supplier', [AdminController::class, 'isSetAsSuppliers']);//是否共享客户

        //公司行业
        Route::post('company_class_list', [CompanyClassController::class, 'index']);
        Route::post('company_class_add', [CompanyClassController::class, 'add']);
        Route::post('company_class_edit', [CompanyClassController::class, 'edit']);
        Route::post('company_class_del', [CompanyClassController::class, 'del']);

        //记账类型
        Route::post('tally_class_list', [TallyClassController::class, 'index']);
        Route::post('tally_class_add', [TallyClassController::class, 'add']);
        Route::post('tally_class_edit', [TallyClassController::class, 'edit']);
        Route::post('tally_class_del', [TallyClassController::class, 'del']);

        Route::post('allocate', [AllocateController::class, 'allocate']);//调拨

        //用户管理
        Route::post('approver_list', [AdminController::class, 'approverList']);//审批人列表

        //我的仓库
        Route::post('storage_list', [StorageController::class, 'storageList']);//仓库列表
        Route::post('storage_select', [StorageController::class, 'storageSelect']);//仓库列表-下拉框
        Route::post('create_storage', [StorageController::class, 'add']);//创建仓库
        Route::post('edit_storage', [StorageController::class, 'edit']);//修改仓库
        Route::post('del_storage', [StorageController::class, 'delete']);//修改仓库
        Route::post('storage_shelf_location', [StorageController::class, 'storageShelfLocation']);//仓库货架库位列表

        //司机
        Route::post('driver_list', [DriverController::class, 'index']);
        Route::post('driver_find', [DriverController::class, 'find']);
        Route::post('driver_add', [DriverController::class, 'add']);
        Route::post('driver_edit', [DriverController::class, 'edit']);
        Route::post('driver_del', [DriverController::class, 'del']);
        Route::post('driver_select', [DriverController::class, 'select']);

        //版本
        Route::post('version_list', [VersionsController::class, 'index']);
        Route::post('version_add', [VersionsController::class, 'add']);
        Route::post('version_edit', [VersionsController::class, 'edit']);
        Route::post('version_del', [VersionsController::class, 'del']);
        Route::post('version_find', [VersionsController::class, 'find']);

        Route::post('cancel_allocate', [LogController::class, 'cancalAllocate']);

        //套餐
        Route::post('package_list', [PackageController::class, 'list']);//套餐列表
        Route::post('add_package_or_content', [PackageController::class, 'add']);//新建套餐或套餐内容
        Route::post('del_package_or_content', [PackageController::class, 'del']);//删除套餐或套餐内容
        Route::post('content_list', [PackageController::class, 'contentList']);//套餐内容列表
        //Route::post('package_edit', [PackageController::class, 'edit']);//修改套餐
        Route::post('edit_package_or_content', [PackageController::class, 'edit']);//修改套餐或套餐内容
        Route::post('package_storage_list', [PackageController::class, 'packageStorageList']);//指定套餐内容对应的在库信息列表(修改套餐内容用)
        Route::post('package_content_select', [PackageController::class, 'packageContentSelect']);//添加套餐内容-可用库存物料信息
        Route::post('package_out', [PackageController::class, 'packageOut']);//套餐出库

        //记账
        Route::post('tally_list', [TallyController::class, 'index']);
        Route::post('tally_find', [TallyController::class, 'find']);
        Route::post('tally_add', [TallyController::class, 'add']);
        Route::post('tally_edit', [TallyController::class, 'edit']);
        Route::post('tally_del', [TallyController::class, 'del']);

        //库存查看
        Route::post('storage_manage_list', [StorageManageController::class, 'list']);//库存列表
        Route::post('storage_manage_import', [CommonController::class, 'import']);//导入库存报表
        Route::post('batch_list', [StorageManageController::class, 'batchList']);//批次列表
        Route::post('clear_storage_manage', [StorageManageController::class, 'clear']);//批次列表
        Route::post('batch_materiel_info', [StorageManageController::class, 'batchMaterielInfo']);//批次采购详情

        //采购
        Route::post('materiel_in_storage', [MaterielController::class, 'materielInStorage']);//入库
        Route::post('cancel_materiel', [MaterielController::class, 'cancel']);//撤销

        //销售
        Route::post('sell_list', [SellController::class, 'index']);
        Route::post('sell_detail', [SellController::class, 'detail']);
        Route::post('sell_add', [SellController::class, 'add']);
        Route::post('sell_edit', [SellController::class, 'edit']);
        Route::post('sell_del', [SellController::class, 'del']);
        Route::post('sell_get_money', [SellController::class, 'getMoney']);//收款
        Route::post('sell_add_again', [SellController::class, 'addAgain']);//重新下单
        Route::post('sell_out', [SellController::class, 'out']);//出库
        Route::post('sell_repeal', [SellController::class, 'repeal']);//撤销
        Route::post('sell_prepare_out', [SellController::class, 'prepare']);//预出库
        Route::post('sell_pay_history', [SellController::class, 'payHistory']);//销售单支付记录
        Route::post('materiel_batch_list', [StorageManageController::class, 'materielBatchList']);//商品批次列表
        Route::post('sell_add_batch', [SellController::class, 'sellAddBatch']);//设置批次号
        Route::post('sell_batch_list', [SellController::class, 'sellBatchList']);//查看批次号
        Route::post('sell_batch_edit', [SellController::class, 'sellBatchEdit']);//编辑批次
        Route::post('sell_batch_del', [SellController::class, 'sellBatchDel']);//删除指定批次
        Route::post('sell_express_info', [SellController::class, 'sellExpressInfo']);

        //共享设置
        Route::post('share_setting', [ShareSettingController::class, 'shareSetting']);//共享设置
        //共享设置
        Route::post('share_setting_list', [ShareSettingController::class, 'list']);//共享设置
        //报表
        Route::post('statement_income_expend_list', [StatisticsController::class, 'incomeOrExpend']);//收入或支出
        Route::post('statement_materiel', [StatisticsController::class, 'statementMateriel']);//采购报表
        Route::post('statement_materiel_detail', [StatisticsController::class, 'statementMaterielDetail']);//采购报表详细
        Route::post('statement_cost', [StatisticsController::class, 'statementCost']);//成本报表
        Route::post('statement_sell', [StatisticsController::class, 'statementSell']);//销售报表
        Route::post('statement_storage', [StatisticsController::class, 'statementStorage']);//仓库报表
        Route::post('statement_storage_detail', [StatisticsController::class, 'statementStorageDetail']);//仓库详细报表
        Route::post('statement_customer', [StatisticsController::class, 'statementCustomer']);//客户报表
        Route::post('statement_customer_detail', [StatisticsController::class, 'statementCustomerDetail']);//客户报表详细

        //售后
        Route::post('sales_return_list', [SalesReturnController::class, 'list']);
        Route::post('sales_return_add', [SalesReturnController::class, 'add']);
        Route::post('sales_return_find', [SalesReturnController::class, 'find']);//详细-with token
        Route::post('sales_return_edit', [SalesReturnController::class, 'edit']);
        Route::post('sales_return_repeal', [SalesReturnController::class, 'repeal']);//撤销
        Route::post('sales_return_in', [SalesReturnController::class, 'in']);//入库
        Route::post('sales_pay_history', [SalesReturnController::class, 'payHistory']);//退货单支付记录
        Route::post('sales_return_get_money', [\App\Http\Controllers\Api\SalesReturnController::class, 'getMoney']);//收款

        //采购
//    Route::post('add_materiel', [MaterielController::class, 'add']);//新建采购
//    Route::post('edit_materiel', [MaterielController::class, 'edit']);//修改采购单
        Route::post('materiel_list', [MaterielController::class, 'list']);//列表
        Route::post('materiel_pay_history', [MaterielController::class, 'payHistory']);//列表
        Route::post('materiel_in_storage', [MaterielController::class, 'materielInStorage']);//入库

        //报溢报损
        Route::post('overflow_breakage_add', [OverflowBreakageController::class, 'add']);
        Route::post('overflow_breakage_list', [OverflowBreakageController::class, 'index']);
        Route::post('overflow_breakage_detail', [OverflowBreakageController::class, 'detail']);
        Route::post('overflow_breakage_repeal', [OverflowBreakageController::class, 'repeal']);

        //审批
        Route::post('check_agree_or_refund', [CheckController::class, 'agreeOrRefund']);

        //快递模板
        Route::post('add_express_templete', [ExpressTempleteController::class, 'add']);//新建快递模板
        Route::post('edit_express_templete', [ExpressTempleteController::class, 'edit']);//编辑快递模板
        Route::post('del_express_templete', [ExpressTempleteController::class, 'del']);//删除快递模板
        Route::post('express_templete_list', [ExpressTempleteController::class, 'list']);//快递模板列表
        Route::post('top_express_templete', [ExpressTempleteController::class, 'top']);//置顶
        Route::post('termini_express_templete_list', [ExpressTempleteController::class, 'termini']);//，目的地省份城市列表
        Route::post('express_templete_detail', [ExpressTempleteController::class, 'detail']);//详情
        Route::post('cancel_top_templete', [ExpressTempleteController::class, 'cancelTop']);//取消置顶
        Route::post('cancel_templete', [ExpressTempleteController::class, 'clear']);//一键清空快递模板

        //计算快递结果
        Route::post('add_calc_express', [ExpressTempleteController::class, 'addCalc']);//新建计算快递结果
        Route::post('edit_calc_express', [ExpressTempleteController::class, 'editCalc']);//修改计算快递结果
        Route::post('list_calc_express', [ExpressTempleteController::class, 'listCalc']);//计算快递结果列表
        Route::post('del_calc_express', [ExpressTempleteController::class, 'deCalc']);//删除计算快递结果
        Route::post('detail_calc_express', [ExpressTempleteController::class, 'detailCalc']);//详细-计算快递结果
        Route::post('calc_express_templete', [ExpressTempleteController::class, 'calc']);//计算快递费用结果
        Route::post('get_kuaidi_list', [ExpressTempleteController::class, 'kuaidiList']);//获取模板中已存在的快递列表

        Route::post('log_detail', [LogController::class, 'detail']);//操作记录详情

        Route::post('chang_pwd', [UsersController::class, 'changePwd']);//操作记录详情

        //快递识别
        Route::post('discriminate_express_code', [ExpressController::class, 'discriminateExpressCode']);//快递识别

        //公告
        Route::post('add_announce', [AnnounceController::class, 'add']);//新建
        Route::post('edit_announce', [AnnounceController::class, 'edit']);//编辑
        Route::post('del_announce', [AnnounceController::class, 'delete']);//删除公告
        Route::post('list_announce', [AnnounceController::class, 'list']);//公告列表
        Route::post('publish_announce', [AnnounceController::class, 'publish']);//发布公告

        //vip配置
        Route::post('vip_setting_list', [VipSettingController::class, 'index']);//列表
        Route::post('vip_setting_add', [VipSettingController::class, 'add']);//新增
        Route::post('vip_setting_edit', [VipSettingController::class, 'edit']);//列表
        Route::post('vip_setting_detail', [VipSettingController::class, 'detail']);//详情

        //zlf-图片画册
        Route::post('hc_add_picture_album',[PictureEditingController::class,'addPictureAlbum']);//添加图片画册
        Route::post('hc_del_upload_imgs',[PictureEditingController::class,'delAlbumImgs']);//删除图片画册图片
        Route::post('hc_upd_picture_album',[PictureEditingController::class,'updatePictureAlbum']);//修改图片画册信息
        Route::post('hc_picture_album_list',[PictureEditingController::class,'getPictureAlbumList']);//图片画册列表
        Route::post('hc_del_picture_album',[PictureEditingController::class,'delPictureAlbum']);//删除画册
        Route::post('hc_add_pic_label',[ImageLabelController::class,'addImageLabel']);//添加画册标签
        Route::post('hc_pic_label_list',[ImageLabelController::class,'getImageLabelList']);//画册标签列表
        Route::post('hc_upd_pic_label',[ImageLabelController::class,'updImageLabel']);//修改画册标签
        Route::post('hc_del_pic_label',[ImageLabelController::class,'delImageLabel']);//删除画册标签
        Route::post('hc_upload',[PictureEditingController::class,'upload']);//图片画册上传图片
        //zlf-文字画册
        Route::post('hc_add_text_img',[TextImageController::class,'addTextImage']);//添加文字画册
        Route::post('hc_del_text_image',[TextImageController::class,'delTextImage']);//删除文字画册
        Route::post('hc_upd_text_image',[TextImageController::class,'updateTextImage']);//修改文字画册
        Route::post('hc_text_image_list',[TextImageController::class,'getTextImageList']);//查询文字画册列表
        Route::post('hc_text_cover_music',[TextImageController::class,'updTextImageImgMusic']);//替换文字画册封面和背景音乐
        //zlf-文字画册内容模板
        Route::post('hc_add_text_temp',[TextImageTemplatesController::class,'addContentTempLate']);//添加文字画册内容模板
        Route::post('hc_upd_text_temp',[TextImageTemplatesController::class,'updateContentTempLate']);//修改文字画册内容模板
        Route::post('hc_text_temp_list',[TextImageTemplatesController::class,'getContentTempLateList']);//查询文字画册内容模板列表
        Route::post('hc_del_text_temp',[TextImageTemplatesController::class,'delContentTempLate']);//删除文字画册内容模板
        Route::post('hc_del_img_video',[TextImageTemplatesController::class,'delMaterialImgVideo']);//删除画册内容模板素材中图片
        Route::post('hc_text_temp_info',[TextImageTemplatesController::class,'getContentTempLateInfo']);//删除文字画册内容模板
        Route::post('hc_upd_img_video',[TextImageTemplatesController::class,'updMaterialImgVideo']);//更换画册内容模板素材中图片
        Route::post('hc_index',[PictureEditingController::class,'getImagesTextAlbumList']);//画册首页-显示图片画册和文字画册
        Route::post('hc_index_del',[PictureEditingController::class,'delIndexAlbum']);//删除首页画册
        Route::post('hc_file_upload',[HcUploadController::class,'upload']);//单个文件上传
        Route::post('hc_add_content_tags',[ContentTagsController::class,'addContentTags']);//添加文字画册内容标签
        Route::post('hc_upd_content_tags',[ContentTagsController::class,'updContentTags']);//修改文字画册内容标签
        Route::post('hc_del_content_tags',[ContentTagsController::class,'delContentTags']);//删除文字画册内容标签
        Route::post('hc_content_tags_list',[ContentTagsController::class,'getTagsRelationContentList']);//文字画册内容标签关联内容模板列表
        //zlf-快递模板
        Route::post('import_express_templete',[CreateExpressTemplatesController::class,'importExpressTemplates']);//导入快递模板

        //zlf-发货单
        Route::post('add_dispatch_list',[DispatchListController::class,'add']);//添加发货单和商品
        Route::post('upd_dispatch_list',[DispatchListController::class,'update']);//修改发货单和商品
        Route::post('dispatch_list_info',[DispatchListController::class,'find']);//发货单信息
        Route::post('del_dispatch_list',[DispatchListController::class,'delete']);//删除发货单信息
        Route::post('del_dispatch_goods',[DispatchListController::class,'delGoods']);//删除发货单商品
        Route::post('get_dispatch_list',[DispatchListController::class,'dispatchList']);//发货单列表
        //zlf-送货单
        Route::post('add_delivery_ship',[DeliverySlipController::class,'add']);//添加送货单和商品
        Route::post('upd_delivery_ship',[DeliverySlipController::class,'update']);//修改送货单和商品
        Route::post('delivery_ship_info',[DeliverySlipController::class,'find']);//送货单信息
        Route::post('del_delivery_ship',[DeliverySlipController::class,'delete']);//删除送货单信息
        Route::post('del_delivery_goods',[DeliverySlipController::class,'delGoods']);//删除送货单商品
        Route::post('delivery_ship_list',[DeliverySlipController::class,'DeliverySlipList']);//送货单列表
        Route::post('delivery_goods_info',[DeliveryGoodsController::class,'find']);//送货单商品信息
        Route::post('delivery_goods_list',[DeliveryGoodsController::class,'goodsList']);//送货单商品列表
        //zlf-报价单
        Route::post('add_quotation_no',[QuotationNoController::class,'add']);//添加报价单和商品
        Route::post('upd_quotation_no',[QuotationNoController::class,'update']);//修改报价单和商品
        Route::post('quotation_no_info',[QuotationNoController::class,'find']);//报价单信息
        Route::post('del_quotation_no',[QuotationNoController::class,'delete']);//删除报价单信息
        Route::post('quotation_no_list',[QuotationNoController::class,'quotationNoList']);//报价单列表
        Route::post('quotation_goods_info',[QuotationGoodsController::class,'find']);//报价单商品信息
        Route::post('quotation_goods_list',[QuotationGoodsController::class,'goodsList']);//报价单商品列表
        Route::post('del_quotation_goods',[QuotationNoController::class,'delGoods']);//报价单商品删除
        Route::post('del_quotation_tags',[QuotationNoController::class,'delTags']);//删除报价单商品标签
        Route::post('upload_goods_img',[QuotationNoController::class,'uploadGoodsImg']);//上传商品图片（单个）
        //zlf-收据
        Route::post('add_receipt',[ReceiptController::class,'add']);//添加收据
        Route::post('upd_receipt',[ReceiptController::class,'update']);//修改收据
        Route::post('receipt_info',[ReceiptController::class,'find']);//收据信息
        Route::post('del_receipt',[ReceiptController::class,'delete']);//删除收据信息
        Route::post('receipt_list',[ReceiptController::class,'receiptList']);//收据表
        //zlf-医疗器械专用送货单
        Route::post('add_medical_delivery_order',[MedicalDeliveryOrderController::class,'add']);//添加医疗器械专用送货单和商品
        Route::post('upd_medical_delivery_order',[MedicalDeliveryOrderController::class,'update']);//修改医疗器械专用送货单和商品
        Route::post('medical_delivery_order_info',[MedicalDeliveryOrderController::class,'find']);//医疗器械专用送货单信息
        Route::post('del_medical_delivery_order',[MedicalDeliveryOrderController::class,'delete']);//删除医疗器械专用送货单信息
        Route::post('del_medical_delivery_goods',[MedicalDeliveryOrderController::class,'delGoods']);//删除医疗器械专用送货单商品
        Route::post('get_medical_delivery_list',[MedicalDeliveryOrderController::class,'MedicalDeliveryOrderList']);//医疗器械专用送货单列表
        //zlf-医疗器械专用发货单
        Route::post('add_medical_deliver_order',[MedicalDeliverOrderController::class,'add']);//添加医疗器械专用送货单和商品
        Route::post('upd_medical_deliver_order',[MedicalDeliverOrderController::class,'update']);//修改医疗器械专用送货单和商品
        Route::post('medical_deliver_order_info',[MedicalDeliverOrderController::class,'find']);//医疗器械专用送货单信息
        Route::post('del_medical_deliver_order',[MedicalDeliverOrderController::class,'delete']);//删除医疗器械专用送货单信息
        Route::post('del_medical_deliver_goods',[MedicalDeliverOrderController::class,'delGoods']);//删除医疗器械专用送货单商品
        Route::post('get_medical_deliver_list',[MedicalDeliverOrderController::class,'MedicalDeliverOrderList']);//医疗器械专用送货单列表
        //zlf-印章
        Route::post('add_seal',[SealManageController::class,'add']);//添加印章
        Route::post('upd_seal',[SealManageController::class,'update']);//修改印章
        Route::post('seal_manage_info',[SealManageController::class,'find']);//印章信息
        Route::post('del_seal',[SealManageController::class,'delete']);//删除印章信息
        Route::post('get_seal_list',[SealManageController::class,'sealList']);//印章表
        Route::post('get_dispatch_list',[DispatchListController::class,'dispatchList']);//发货单列表
        Route::post('get_select_goods',[DispatchListController::class,'selectGoods']);//选择物料商品
        Route::post('get_create_number',[DispatchListController::class,'createNumber']);//创建编号
        //zlf-一键生成画册
        Route::post('add_material_pic_album',[HcMaterielTypeController::class,'addHcMaterielType']);//一键生成商品画册
        Route::post('material_pic_album_list',[HcMaterielTypeController::class,'productPicAlbumList']);//商品画册列表
        Route::post('material_pic_album_info',[HcMaterielTypeController::class,'productPicAlbumInfo']);//商品信息列表
        Route::post('sel_album_goods',[HcMaterielTypeController::class,'selectGoods']);//选择商品
        Route::post('del_hc_class', [HcMaterielClassController::class, 'del']);//删除指定商品画册分类
        Route::post('edit_hc_class', [HcMaterielClassController::class, 'edit']);//修改指定商品画册分类信息
        Route::post('del_pic_album_goods', [HcMaterielTypeController::class, 'delGoods']);//删除商品画册商品信息
        Route::post('edit_pic_album_goods', [HcMaterielTypeController::class, 'updGoods']);//修改商品画册商品信息
        Route::post('del_pic_album', [HcMaterielTypeController::class, 'delPicAlbum']);//删除商品画册信息
        Route::post('edit_pic_album', [HcMaterielTypeController::class, 'editPicAlbum']);//修改商品画册信息
        //zlf-进出货统计
        Route::post('statistics_purchased_goods', [StatisticsController::class, 'statisticsPurchasedGoods']);//客户采购商品统计
        Route::post('statistics_goods_sold', [StatisticsController::class, 'statisticsGoodsSold']);//客户销售商品统计
        //zlf-存储空间
        Route::post('add_storage_space_choose',[BuyStorageSpaceController::class,'add']);//添加购买储存空间选项
        Route::post('edit_storage_space_choose',[BuyStorageSpaceController::class,'edit']);//修改购买储存空间选项
        Route::post('del_storage_space_choose',[BuyStorageSpaceController::class,'del']);//删除购买储存空间选项
        Route::post('storage_space_choose_list',[BuyStorageSpaceController::class,'list']);//购买储存空间选项列表
        Route::post('storage_space_choose_info',[BuyStorageSpaceController::class,'info']);//储存空间选项单条信息
        //zlf-盘点
        Route::post('get_storage_list',[CheckStorageManageController::class,'storageList']);//仓库列表
        Route::post('get_storage_goods_list',[CheckStorageManageController::class,'getStorageGoodsList']);//仓库商品列表
        Route::post('add_check_storage_data',[CheckStorageManageController::class,'addCheckStorageGoods']);//添加整仓盘点
        Route::post('upd_check_storage_data',[CheckStorageManageController::class,'updCheckStorageGoods']);//添加整仓盘点
        Route::post('get_read_batch_no',[CheckStorageManageController::class,'readBatchNo']);//通过批次号查询仓库商品信息（扫码）
        Route::post('get_check_storage_list',[CheckStorageManageController::class,'getCheckList']);//通过批次号查询仓库商品信息（扫码）
        Route::post('check_yk_goods_list',[CheckStorageManageController::class,'getCheckYkGoodsList']);//指定盈亏查询盘点商品列表
        //zlf-退货批次号列表
        Route::post('sales_return_batch_list',[SalesReturnController::class,'salesReturnBatchList']);//退货选择批次号列表
        Route::post('sales_return_add_batch',[SalesReturnController::class,'sellAddBatch']);//退货添加批次号
        //zlf-退货序列号
        Route::post('sales_return_serialnumber_list',[SalesReturnController::class,'salesReturnSerialNumber']);//退货选择序列号
        //zlf-一键清除发送验证码
        Route::post('get_main_phone',[StorageManageController::class,'getMainPhone']);//一键清除返回主账号手机号
        Route::post('get_one_clear_code',[StorageManageController::class,'getOneClearCode']);//一键清除发送验证码
        Route::post('storage_log_list', [LogController::class, 'list']);//操作记录列表
        //出入库操作记录
        Route::post('storage_log_del', [LogController::class, 'logDel']);

        //字段权限管理 zl
        Route::post('field_list',[DataFieldController::class,'FieldList']);//限制参数列表

        //微信支付 zl
        Route::any('wechat_pay',[OrderController::class,'WechatPay']);
        Route::post('direct_in_storage_several', [StorageManageController::class, 'directInStorageSeveral']);//直接入库
        Route::post('direct_out_storage_several', [StorageManageController::class, 'directOutStorageSeveral']);//直接出库
        Route::post('serial_no_list', [StorageManageController::class, 'serialNoList']);//批次列表

        //货架管理 zl
        Route::post('get_shelf',[ShelfController::class,'GetShelf']);//通过仓库获取货架及库位
        Route::post('shelf_create',[ShelfController::class,'ShelfCreate']);//添加货架
        Route::post('shelf_update',[ShelfController::class,'ShelfUpdate']);//修改货架
        Route::post('shelf_del',[ShelfController::class,'ShelfDel']);//删除货架
        Route::post('location_create',[LocationController::class,'LocationCreate']);//添加库位
        Route::post('location_update',[LocationController::class,'LocationUpdate']);//修改库位
        Route::post('location_del',[LocationController::class,'LocationDel']);//删除库位
        Route::post('shelf_list',[ShelfController::class,'ShelfList']);//货架列表
        Route::post('shelf_info',[ShelfController::class,'ShelfInfo']);//货架详情
        Route::post('location_list',[LocationController::class,'LocationList']);//库位列表
        Route::post('location_info',[LocationController::class,'LocationInfo']);//库位详情
    });
});

Route::any('wechat_order_notify', [NotifyController::class,'WechatNotify']);//微信订单回调

Route::group(['middleware'=>['enable_cross']],function(){
    Route::get('detail_sell_find', [CommonDetailController::class, 'sellFind']);
    Route::get('detail_sales_return_find', [CommonDetailController::class, 'salesReturnFind']);//退货单详细-without token
    Route::post('hc_content_tags_info',[ContentTagsController::class,'getContentTagsInfo']);//查询文字画册内容标签信息
    Route::post('hc_pic_label_info',[ContentTagsController::class,'getImageLabelInfo']);//查询画册标签信息
    Route::post('hc_picture_album_info',[ContentTagsController::class,'getPictureAlbumInfo']);//查询画册信息
    Route::post('hc_text_image_info',[ContentTagsController::class,'getTextImageInfo']);//查询文字画册信息
    Route::post('dispatch_info',[ContentTagsController::class,'dispatchListInfo']);//分享/打印查询发货单信息
    Route::post('delivery_info',[ContentTagsController::class,'deliverySlipInfo']);//分享/打印查询送货单信息
    Route::post('quotation_info',[ContentTagsController::class,'quotationNoInfo']);//分享/打印查询报价单信息
    Route::post('get_info',[ContentTagsController::class,'receiptInfo']);//分享/打印查询收据信息
    Route::post('medical_delivery_info',[ContentTagsController::class,'medicalDeliveryInfo']);//分享/打印查询医疗器械专用送货单信息
    Route::post('medical_deliver_info',[ContentTagsController::class,'medicalDeliverInfo']);//分享/打印查询医疗器械专用送货单信息
    Route::post('get_seal_info',[ContentTagsController::class,'sealInfo']);//分享/打印查询印章信息
    Route::post('get_goods_album_list',[ContentTagsController::class,'productPicAlbumList']);//分享商品画册信息
    Route::get('export_express_templete',[CreateExpressTemplatesController::class,'exportExpressTemplates']);//导出快递模板
    Route::get('express_temp_download',[CreateExpressTemplatesController::class,'download']);//快递模板下载
    Route::post('read_goods_id_info',[CommonDetailController::class,'readGoodsIdInfo']);
});

Route::post('sync_materiel_cost', [SyncDataController::class, 'syncMaterielCost']);//同步成本
Route::post('sync_sell_time', [SyncDataController::class, 'syncSellTime']);//同步采购时间
Route::post('sync_materiel_time', [SyncDataController::class, 'syncMaterielTime']);//同步采购时间
Route::post('sync_supplier', [SyncDataController::class, 'syncSupplier']);//同步采购时间
Route::post('sync_cost', [SyncDataController::class, 'syncCost']);//同步当前成本至上一次成本中

//设置
Route::post('set_experience_days', [SystemConfigController::class, 'setExperience']);//设置体验天数
Route::post('get_experience_days', [SystemConfigController::class, 'getExperience']);//获取体验天数
Route::post('set_is_upkeep', [SystemConfigController::class, 'isUpkeep']);//设置体验天数
Route::post('set_switch', [SystemConfigController::class, 'set']);//设置开关
Route::post('get_switch', [SystemConfigController::class, 'get']);//获取开关
Route::post('get_is_upkeep', [SystemConfigController::class, 'getIsUpkeep']);//获取系统维护信息

Route::post('new_announce', [CommonController::class, 'newAnnounce']);//最新公告

